package cn.jinjimi.app.custom.entity;


/**
 * Created by Jinsen on 2015/5/19.
 *
 * modify 2015/11/20
 */
public class RemindBean implements Comparable{
    public final static int TYPE_HOLIDAY = 0x1;
    public final static int TYPE_CUSTOMER = 0x2;
    public final static int TYPE_INSURE = 0x3;
    public final static int TYPE_TITLE = 0x4;

    /**
     * 类型
     */
    public int type;

    /**
     * 距离提醒日期倒计时
     */
    public int difference;


    /**
     * 数据
     */
    public Object data;

    @Override
    public int compareTo(Object another) {
        RemindBean an = (RemindBean) another;
        if(this.difference > an.difference)
            return 1;
        if(this.difference < an.difference)
            return -1;
        return 0;
    }
}
